<jsp:useBean id="clientBean" class="clientbean.ClientWebBean" scope="session" />
<div id="user_form">
<table width="100%">
	<%
		if(clientBean.checkSession()){ // verifica no sessionBean se esta logado
	%>
		info do utilizador
	<% }else{ %>
	<form method="POST" action="login.jsp">
		<tr>
			<td>username</td><td><input type="text" name="username" /></td>
		</tr>
		<tr>
			<td>password</td><td><input type="password" name="password" /><br /></td>
		</tr>
		<tr>
			<td><input type="submit" value="login" /></td><td align="right"><a href="index.jsp?action=register">register</a></td>
		</tr>
	</form>
	<%} %>
</table>
</div>